LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE    := stagefrightdecoder
### Add all source file names to be included in lib separated by a whitespace
LOCAL_SRC_FILES := stagefrightdecoder.cpp
LOCAL_CFLAGS += -IE:/ansrc/system/core/include
LOCAL_CFLAGS += -IE:/ansrc/frameworks/base/include -IE:/ansrc/frameworks/base/media/libstagefright
LOCAL_CFLAGS += -IE:/ansrc/frameworks/base/include/media/stagefright/openmax
LOCAL_CFLAGS += -IE:/ansrc/hardware/libhardware/include
LOCAL_LDLIBS += -lstagefright
LOCAL_LDLIBS += -lmedia -lutils -lbinder -lm -lz -llog
LOCAL_ALLOW_UNDEFINED_SYMBOLS := true
LOCAL_PRELINK_MODULE := false
# LOCAL_SHARED_LIBRARIES := G726EnDe G711aDec

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := G726EnDe
LOCAL_SRC_FILES := libG726EnDe.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := G711aDec
LOCAL_SRC_FILES := libG711aDec.so
include $(PREBUILT_SHARED_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE := H264Decode
LOCAL_SRC_FILES := libH264Decode.so
include $(PREBUILT_SHARED_LIBRARY)
